package cn.yunhe.dao;

import java.util.List;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import cn.yunhe.entity.Province;
@Repository("provinceDao")
public class ProvinceDaoImpl extends HibernateDaoSupport implements ProvinceDao {
	@Autowired
	@Qualifier("sessionFactory")
	private SessionFactory sessionFactory;
	public List<Province> searchProvince() {
		return super.getHibernateTemplate().find("from Province");
	}
	
}
